package com.smcdd.cdb.dbo.cdb_dbo.service.exception;

/**
 * 作者：Administrator on 2017/6/30 14:20
 * 邮箱：zhanghuaiha@gmail.com
 */

public class ApiException extends Exception {
    private int code;

    private String messege;

    public ApiException(Throwable e){
        super(e);
    }

    public ApiException(Throwable e,@CodeException.Ecp int code,String msg){
        super(msg,e);
        setCode(code);
        setMessage(msg);
    }

    public int getCode() {
        return code;
    }

    public String getMessege() {
        return messege;
    }

    public void setCode(int code) {

        this.code = code;
    }

    public void setMessage(String messege) {
        this.messege = messege;
    }
}
